﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TMDb.Movie.imdbLookup" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
  <xs:element name="OpenSearchDescription">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Query" msdata:Prefix="opensearch">
          <xs:complexType>
            <xs:attribute name="searchTerms" form="unqualified" type="xs:string" />
          </xs:complexType>
        </xs:element>
        <xs:element name="totalResults" msdata:Prefix="opensearch" type="xs:int" />
        <xs:element name="movies" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="movie" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="popularity" type="xs:int" minOccurs="0" maxOccurs="1" />
                    <xs:element name="translated" type="xs:boolean" minOccurs="0" maxOccurs="1" />
                    <xs:element name="adult" type="xs:boolean" minOccurs="0" maxOccurs="1" />
                    <xs:element name="language" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="original_name" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="name" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="alternative_name" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="type" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="id" type="xs:int" minOccurs="0" maxOccurs="1" />
                    <xs:element name="imdb_id" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="url" type="xs:anyURI" minOccurs="0" maxOccurs="1" />
                    <xs:element name="overview" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="votes" type="xs:int" minOccurs="0" maxOccurs="1" />
                    <xs:element name="rating" type="xs:float" minOccurs="0" maxOccurs="1" />
                    <xs:element name="certification" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="released" type="xs:string" minOccurs="0" maxOccurs="1" />
                    <xs:element name="runtime" type="xs:string" minOccurs="0" maxOccurs="1" default="0" />
                    <xs:element name="categories" minOccurs="0" maxOccurs="1">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="category" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:attribute name="type" type="xs:string" />
                              <xs:attribute name="name" type="xs:string" />
                              <xs:attribute name="url" type="xs:anyURI" />
                              <xs:attribute name="id" type="xs:int" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="images" minOccurs="0" maxOccurs="1">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="image" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:attribute name="type" type="xs:string" />
                              <xs:attribute name="url" type="xs:anyURI" />
                              <xs:attribute name="size" type="xs:string" />
                              <xs:attribute name="width" type="xs:int" />
                              <xs:attribute name="height" type="xs:int" />
                              <xs:attribute name="id" type="xs:string" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="version" type="xs:int" minOccurs="0" maxOccurs="1" />
                    <xs:element name="last_modified_at" type="xs:string" minOccurs="0" maxOccurs="1" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>